#ifndef WORKLISTINTERFACE_H
#define WORKLISTINTERFACE_H

#include <QObject>
class QJsonObject;

typedef void (*WorklistProc)(const QJsonObject &json, void *userData);

class WorklistInterface
{
public:
    virtual ~WorklistInterface() {}

    virtual QObject *getObject() = 0;
    virtual void setWorklistHook(WorklistProc proc, void *userData) = 0;

};

#define WorklistPlugin_iid "com.zmg.dr.plugin.worklist.v100"
Q_DECLARE_INTERFACE(WorklistInterface, WorklistPlugin_iid)

#endif // WORKLISTINTERFACE_H
